package com.example.medispider.pojo.detail.userinfo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoResponse {
    private Integer code;
    private String type;
    private String message;
    private UserInfoResponseData data;

    // 判断请求是否成功
    public boolean isSuccess() {
        return code != null && code == 0 && "success".equals(type);
    }
}
